<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link rel="stylesheet" type="text/css" href="__CSS__/admin.css"/>
<script charset="utf-8" src="__JS__/kindeditor/kindeditor.js"></script>
<script charset="utf-8" src="__JS__/kindeditor/lang/zh_CN.js"></script>
<script>
        var editor;
        KindEditor.ready(function(K) {
                editor = K.create('#editor_id');
        });
</script>
</head>

<body>
<form action="{:U('Article/insert')}" method="post" enctype="multipart/form-data">
<table id="add_table" width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#a8c7ce">
  <tr>
    <td height="20" bgcolor="#353c44" class="STYLE10 tr_top" colspan="2"><img src="__IMG__/tb.gif" width="14" height="14" /> <span class="STYLE1 text_top">添加文章</span>
    </td>
  </tr>
  <tr>
    <td width="15%" height="20" bgcolor="#FFFFFF">文章标题(<span class="red_star">*</span>)：</td>
    <td height="20" bgcolor="#FFFFFF" class="STYLE19"><input type="text" name="title" /></td>
  </tr>
  <tr>
    <td width="15%" height="20" bgcolor="#FFFFFF">文章作者(<span class="red_star">*</span>)：</td>
    <td height="20" bgcolor="#FFFFFF" class="STYLE19"><input type="text" name="author" /></td>
  </tr>
  <tr>
    <td width="15%" height="20" bgcolor="#FFFFFF">文章来源(<span class="red_star">*</span>)：</td>
    <td height="20" bgcolor="#FFFFFF" class="STYLE19"><input type="text" name="come_from" /></td>
  </tr>
  <if condition="$cat_id eq 0">
  <tr>
    <td height="20" bgcolor="#FFFFFF">发表栏目：</td>
    <td height="20" bgcolor="#FFFFFF" class="STYLE19">
        <select name="cat_id">
            <option value="">请选择父类</option>
            {$cat_option}
        </select>
    </td>
  </tr>
  <else />
  <tr>
    <td height="20" bgcolor="#FFFFFF">发表栏目：</td>
    <td height="20" bgcolor="#FFFFFF" class="STYLE19">
        <input type="hidden" name="cat_id" value="{$cat_id}" />{$category.cat_name}
    </td>
  </tr>
  </if>
  <if condition="$_GET.id eq 11">
  <tr>
    <td width="15%" height="20" bgcolor="#FFFFFF">主题图片：</td>
    <td height="20" bgcolor="#FFFFFF" class="STYLE19"><input type="file" name="thumb" /></td>
  </tr>
  </if>
  <tr>
    <td height="20" bgcolor="#FFFFFF">文章内容(<span class="red_star">*</span>)：</td>
    <td height="20" bgcolor="#FFFFFF" class="STYLE19">
        <textarea id="editor_id" name="content" style="width:700px;height:300px;">
        </textarea>
    </td>
  </tr>
    <td height="20" bgcolor="#FFFFFF">&nbsp;</td>
    <td height="20" bgcolor="#FFFFFF" class="STYLE19"><input type="submit" name="submitted" value="提交" /></td>
  </tr>
</table>
<script type="text/javascript">
    CKEDITOR.replace('content');
</script>
</form>
</body>
</html>
